/******************************************************************************

	COPYRIGHT(C) JONAS 'SORTIE' TERMANSEN 2008, 2009, 2010.

	This file is part of Maxsi Engine.

	Maxsi Engine is free software: you can redistribute it and/or modify it
	under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or (at your
	option) any later version.

	Maxsi engine is distributed in the hope that it will be useful, but WITHOUT
	ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
	FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
	for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with Maxsi Engine. If not, see <http://www.gnu.org/licenses/>.

	MaxsiEngine.dll
	A general purpose C++ library for the Maxsi Technology Project.

	MaxsiSHA.h
	Library for Secure Hash Algorihm stuff.

******************************************************************************/

#ifndef MaxsiSHA_H
#define MaxsiSHA_H

BeginMaxsiNamespace

//=============================================================================
//	MESTR* CalculateSHA1(BYTE* Buffer, size_t BufferLen);
//	
//	Calculates the SHA1 hash for Buffer with BufferLen bytes in it and returns
//	a 40 character hex string containing the SHA1 hash or returns NULL if the
//	function fails, possibly due to memory allocations. You have to delete[]
//	the resulting buffer when you are done with it to avoid memory leaks.
//=============================================================================
LINK MESTR* CalculateSHA1(BYTE* Buffer, size_t BufferLen);

EndMaxsiNamespace

#endif
